﻿using System;
//
namespace PerceptiveMCAPI.Types
{
    public class listsResults
    {
        public string id { get; set; }
        public int web_id { get; set; }
        public string name { get; set; }
        public DateTime date_created { get; set; }
        public int member_count { get; set; }
        public int unsubscribe_count { get; set; }
        public int cleaned_count { get; set; }
        public bool email_type_option { get; set; }
        public string default_from_name { get; set; }
        public string default_from_email { get; set; }
        public string default_subject { get; set; }
        public string default_language { get; set; }
        /// <summary>
        /// An auto-generated activity score for the list (0 - 5). 
        /// May include fractional values, e.g., 3.5
        /// </summary>
        public double list_rating { get; set; }
        /// <summary>
        /// The number of active members in the given list since the last campaign was sent
        /// </summary>
        public int member_count_since_send { get; set; }
        /// <summary>
        /// The number of members who have unsubscribed from the given list since the last campaign was sent
        /// </summary>
        public int unsubscribe_count_since_send { get; set; }
        /// <summary>
        /// The number of members cleaned from the given list since the last campaign was sent
        /// </summary>
        public int cleaned_count_since_send { get; set; }

        public override string ToString ()
        {
            return string.Format( "id: {0}, name: {2}", id, name );
        }
    }
}
